﻿using System;
using UnityEditor;
using UnityEngine;

[CustomEditor(typeof(USObserverKeyframe)), CanEditMultipleObjects]
public class USObserverKeyframeInspector : Editor
{
    private SerializedProperty FireTime;
    private SerializedProperty OurCamera;

    private void OnEnable()
    {
        this.FireTime = base.serializedObject.FindProperty("fireTime");
        this.OurCamera = base.serializedObject.FindProperty("camera");
    }

    public override void OnInspectorGUI()
    {
        base.serializedObject.Update();
        EditorGUILayout.PropertyField(this.FireTime, new GUIContent("触发时间"), new GUILayoutOption[0]);
        EditorGUILayout.PropertyField(this.OurCamera, new GUIContent("镜头"), new GUILayoutOption[0]);
        base.serializedObject.ApplyModifiedProperties();
    }
}

